home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 25
/
AACD 25.iso
/
AACD
/
Magazine
/
Online
/
QMail
/
source
/
alloc_re.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1997-04-15
|
214 b
|
18 lines
#include "alloc.h"
#include "byte.h"
int alloc_re(x,m,n)
char **x;
unsigned int m;
unsigned int n;
{
char *y;
y = alloc(n);
if (!y) return 0;
byte_copy(y,m,*x);
alloc_free(*x);
*x = y;
return 1;
}